home *** CD-ROM | disk | FTP | other *** search
- /* internal.h
- * AUTHOR: Cy Booker, cy@cheepnis.demon.co.uk
- * LICENSE: FreeWare, Copyright (c) 1995 Cy Booker
- * PURPOSE: common code
- */
-
- #ifndef internal_h
- #define internal_h
-
-
-
- #include "8bpp.h"
-
- #include "gif2rpc:map8bpp.h"
-
-
-
-
- #define INPUT \
- colour = palette[rove[x]]; /* source pixel palette entry */\
- red = (colour >> (1*8)) & 0xff; red |= red << 8; /* scale to internal representation */\
- grn = (colour >> (2*8)) & 0xff; grn |= grn << 8;\
- blu = (colour >> (3*8)) & 0xff; blu |= blu << 8
-
-
-
- #define PROCESS \
- rove[x] = (*fn)(&error, red, grn, blu); /* write pixel */\
- red = error.colour.red; /* error */\
- grn = error.colour.grn;\
- blu = error.colour.blu
-
-
-
- #endif /* internal_h */
-